FolderItem.Permissions Property

Syntax

Permissions as Integer


Gets and sets the permissions of the FolderItem on Unix-based operating systems only (Mac OS X and Linux). You can get and set the permissions as an octal Integer or you can get and set the permissions via the properties of the Permissions class.

Permissions is represented as a three-digit numeric code, in which each digit ranges from 0 to 7. The digits correspond to the permissions of the FolderItem owner, the owning group, and other users not in the owning group, in that order. The code for each digit is computed using the following values:

4: Read permissions

2: Write permissions

1: Execute permissions

For each digit, the permissions are expressed by adding up the values. Each digit can take on the following values:

0 = No permissions

1 = Execute permissions

2 = Write permissions

3 = Write and Execute permissions

4 = Read permissions

5 = Read and Execute permissions

6 = Read and Write permissions

7 = Read, Write, and Execute permissions

For example, the code "764" is interpreted as follows:

Owner: 7= Read, Write, and Execute permissions

Group: 6 = Read and Write permissions

Others: 4 = Read permissions